home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- Comdemo - Serial Communications Demo.
-
- Comdemo is a full duplex terminal program. It recognizes most
- of the more common ANSI control sequence such as cursor
- location and screen attributes. You can use Comdemo to
- dial up a BBS or communicate with RS-232 equipment.
-
- Comdemo will send Ctrl characters and keys such as the
- escape key verbatim. Some Alt characters are reserved for
- commands. They are as follows:
-
-
- Alt A - Toggle between ANSI and TTY terminal.
- Alt B - Next baud rate.
- Alt C - Next COM port.
- Alt D - Hayes dial command (sends the string "ATDT")
- Alt E - Toggle echo mode.
- Alt G - Hayes hang up command (sends the string "~~~+++~~~ATH0\r\n").
- Alt H - Next handshake scheme.
- Alt I - Initialize a Hayes modem (sends the string "ATZ").
- Alt N - Append a line feed to a carriage return toggle.
- Alt M - Toggle mode (8-1-N, 7-1-E).
- Alt X - Quit Comdemo.
- Pg Up - Upload a file (Xmodem)
- Pg Dn - Download a file (Xmodem)
-
-
- To dial up a BBS, set the COM port (Alt C), baud rate (Alt B),
- word length (Alt W), number of stop bits (Alt S) and parity
- (Alt P). If the BBS send ANSI escape codes make sure ANSI is
- selected (Alt A). You probably need to set LF on (Alt N) as well.
- Now you can initialize your modem and dial. Press Alt I to
- initialize the modem and then press Alt D followed by the
- phone number and the enter key. If the initialize and dial
- strings in Comdemo are not appropriate for your modem, you
- can enter them by hand.
-
-
- The source code for Comdemo is provided for your inspection.
- It is, however, compiled with function that are exclusive to
- the Turbo C v2.0 run time library. Specifically those prototyped
- in Conio.h. If you have similar functions in your C
- compiler's run time library or you have an extended windows
- library, you could easily replace them. There are not that
- many. They are as follows:
-
-
- gotoxy() - Locates the cursor.
- wherex() - Returns cursor X coordinate.
- wherey() - Returns cursor Y coordinate.
- clrscr() - Clears the window.
- textattr() - Sets the text attributes.
- window() - Defines a window.
- clreol() - Clears to end of line.
-